#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    int place;
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void paintEvent(QPaintEvent *event);
    void Initnumber();
    void keyPressEvent(QKeyEvent *event);
private slots:
    void num_fall();
void num_move();
private:
    Ui::MainWindow *ui;
    QRect number;
    QTimer *timer;
    QTimer *timer2;
    int direct;//方向
    bool ifrun;//是否开始
};

#endif // MAINWINDOW_H
